﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TaggerApp.MSTagRefService;
using System.Configuration;

namespace TaggerApp.Admin.Pages
{
    public partial class TagDownloadPopup : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnDownloadTag_Click(object sender, EventArgs e)
        {
            if (rdBtnMSTag.Checked)
            { 
                
            }
        }

        //private void RenderTag()
        //{
        //    try
        //    {
        //        MIBPContractClient OMIBPClient = new MIBPContractClient();
        //        UserCredential oCredential = new UserCredential();

        //        oCredential.AccessToken = ConfigurationManager.AppSettings["MSTagAPIKey"];
        //        byte[] oBarcode = OMIBPClient.GetBarcode(oCredential, "Main", txtBoxName.Text, ImageTypes.jpeg, 7, DecorationType.HCCBRP_DECORATION_NONE, false);

        //        //render the oBarcode byte array into an image.
        //        string tagImage = Convert.ToBase64String(oBarcode, 0, oBarcode.Length);
        //        Image1.ImageUrl = "data:image/png;base64," + tagImage;
        //        Image1.Visible = true;

        //    }
        //    catch
        //    {
        //        throw;
        //    }
        //}
    }
}